package com.solr.sboot.solr.po;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.apache.solr.client.solrj.beans.Field;
import org.springframework.data.annotation.Id;
import org.springframework.data.solr.core.mapping.Indexed;
import org.springframework.data.solr.core.mapping.SolrDocument;

/**
 * @描述: solr文档配置
 * @类名:
 * @作者: yangshuang
 * @创建时间: 2017/8/21 14:08
 * @版本: v1.0
 */
@Getter
@Setter
@SolrDocument(solrCoreName = "core0")//文档路径
@ToString
public class DocumentPo {
    @Id
    @Indexed
    @Field
    private String id;//唯一主键

/*    @Field
    private String name;//名称*/

    @Field
    private String title;//标题
}
